import request from './request'
export const LoginApi=(data)=>request.post("/admin/auth/login",data)
export const GoodsApi=(data)=>request.get("/admin/goods",{params:data})
export const Category=(data)=>request.get("/admin/category",{data})
export const Brand=(data)=>request.get("/admin/brand",{params:data})
export const Attribute=(data)=>request.get("/admin/attribute",{data})
export const getUserByToken=()=>request.post("/admin/auth/getUserByToken",{})
export const AttributeApi=(data)=>request.get('/admin/attribute',{params:data})
export const Attributeinfo=(data)=>request.get('/admin/attribute/info',{params:data})
export const  getStats=(data)=>request.get('/admin/stat',{params:data})
export const  gettopCategory=(data)=>request.get('/admin/category/topCategory',{params:data})
export const  getEditCategory=(data)=>request.get('/admin/category/info',{params:data})
export const getCategoryStore=()=>request.post("/admin/category/store",{})
//订单

export const  getOrder=(data)=>request.get('/admin/order',{params:data})



